package com.example.demo.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WJ
 * Date: 2023-03-03
 * Time: 16:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Active {
    private Integer id;
    private Integer admin_id;                  // 该活动是向谁申请的:管理员id
    private String active_name;                // 活动名
    private String active_address;             // 活动地址
    private String active_image_one;
    private String active_image_two;
    private String context;
    private Integer active_employee;           // 申请该活动的员工id
    private String active_employee_name;       // 申请该活动的员工名
    private String summary;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date start_time;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date end_time;
    private String status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date create_time;                 // 申请时间

    private String result;                    // 老人报名活动结果
}
